package com.sky.service.common;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    Result<String> save(DishDTO dto);

    Result<PageResult> page(DishPageQueryDTO dto);

    Result<String> deleteByIds(List<Long> ids);

    Result<DishVO> selectDishWithFlavor(Long dishId);

    Result<String> update(DishDTO dto);

    List<Dish> list(Long categoryId);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
